Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payload validation refactoring for processes, roles, routes, and service bindings #2633

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

kieron-dev
Copy link
Contributor

@kieron-dev kieron-dev commented Jun 23, 2023

Is there a related GitHub Issue?

#1996

What is this change about?

  • Use request validator in /v3/processes
  • Move role, route and service binding api param testing to payloads package
  • Use jellydator validation instead of go-playground

Does this PR introduce a breaking change?

No

Acceptance Steps

Tag your pair, your PM, and/or team

@danail-branekov

@kieron-dev kieron-dev force-pushed the issues/1996-payload-validation branch from e99b618 to 6f569e4 Compare June 26, 2023 09:06
@kieron-dev kieron-dev changed the title Payload validation refactoring for processes and roles Payload validation refactoring for processes, roles, and routes Jun 26, 2023
@kieron-dev kieron-dev force-pushed the issues/1996-payload-validation branch from 965ac11 to f3c79ea Compare June 26, 2023 15:50
@kieron-dev kieron-dev changed the title Payload validation refactoring for processes, roles, and routes Payload validation refactoring for processes, roles, routes, and service bindings Jun 26, 2023
Kieron Browne and others added 5 commits June 27, 2023 12:01
We also migrated all role validation to jellydator

Issue: #1996
Co-authored-by: Danail Branekov <[email protected]>
This includes:
- switching list routes to use the requestValidator to parse URL params
- changing from go-playground to jellydator validation

Issue: #1996
And migrate from go-playground to jellydator validation.
E.g. AppCreate payload has relationships.space.data.guid. If we use
pointers all the way down, we get the correct error message if the json
only contains some of the path. So providing `relationships.space` would
error with `data` being required.

Issue: #1996
Co-authored-by: Kieron Browne <[email protected]>
@danail-branekov danail-branekov enabled auto-merge (rebase) June 27, 2023 09:01
@danail-branekov danail-branekov merged commit ffcd6af into main Jun 27, 2023
6 checks passed
@danail-branekov danail-branekov deleted the issues/1996-payload-validation branch June 27, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants